package com.xinzhi.mapper;

import com.xinzhi.pojo.Bankaccount;
import com.xinzhi.pojo.UserIDNumber;
import com.xinzhi.pojo.Userbindingcardtable;
import com.xinzhi.pojo.dto.Username;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UsersMapper {
    UserIDNumber selectUser(@Param("username") String username,@Param("idnumber") String idnumber);

    /**
     *
     * @param username
     * @param card_number
     * @return
     */
    Bankaccount selectUsernameByID(@Param("username") String username, @Param("card_number") String card_number);

    /**
     * 查询银行卡是否存在
     * @param card_id 银行卡id
     * @return
     */
    List<Userbindingcardtable> selectCard(Integer card_id);

}
